package com.cuanbobox.utils;

import android.view.View;

import com.cuanbobox.cbavcx.R;

public class BtnUtil {
    private boolean bl;

    public BtnUtil(View v){
        v.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bl=!bl;
                if(bl){
                    v.setBackgroundResource(R.drawable.in_out_check_bg);
                }else{
                    v.setBackgroundResource(R.drawable.in_out_uncheck_bg);
                }
            }
        });
    }

}
